
class Composite < Widget

  def init_widget widget
    @widget = widget
    set_primary_classes [self.class.to_s.split('::').last]
  end

  def set_primary_classes classes
    @widget.set_primary_classes classes
  end

  def add_primary_class class_name
    @widget.add_primary_class(class_name)
  end

  def to_s
    @widget.to_s
  end

end
